package com.example.win.android_banduyujia.peopleactivity.activity.activity.openactivity.DataActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.peopleactivity.activity.activity.openactivity.adapter.ListAdapter;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by Win on 2015/9/16.
 */
public class VenuessActivity extends BaseTitleBarActivity {
     public static final String TAG=VenuessActivity.class.getSimpleName();

    private ListView    mListVenues;
    private ListAdapter mAdapter;

    private ArrayList<HashMap<String, String>>  list;

    private View header;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_venues_tags_item);

        list = new ArrayList<HashMap<String, String>>();
        list.add(new HashMap<String, String>());

        InittItles();
        InitViews();
    }

    private void InittItles() {
        showLeftBackButton();
        setTitle(R.string.layout_data_page_text_view_venues);
        setRightButtonImageAndListener(R.mipmap.addpicture, mAddListener);
    }

    private View.OnClickListener  mAddListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {

        }
    };

    private void InitViews() {
        mAdapter =  new ListAdapter(this, list);
        mListVenues.setAdapter(mAdapter);
        mAdapter.notifyDataSetChanged();

        mListVenues = (ListView)findViewById(R.id.list_view_venues);
        mListVenues.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

            }
        });
    }
}
